package etc.spec.ytt.week8.home.class2;

public class Bear extends Animal implements IAnimal,IHibernate{
    private String hibernation;
    public Bear() {
    }

    public Bear(String name, String area, String food) {
        super(name, area, food);
    }

    @Override
    public String findFood() {
        return super.getName()+"找"+super.getFood();
    }

    @Override
    public String wholeLife() {
        return born()+findFood()+eat()+old()+sick()+die();
    }

    @Override
    public String born() {
        return super.getName()+"出生在"+super.getArea();
    }

    @Override
    public String old() {
        return super.getName()+"年纪大了";
    }

    @Override
    public String sick() {
        return super.getName()+"生病了";
    }

    @Override
    public String die() {
        return super.getName()+"死了";
    }


    public String hibernate() {
        return super.getName()+"冬眠3个月";
    }

}
